# db/mongo.py
from motor.motor_asyncio import AsyncIOMotorClient
from config import MONGO_URI

client = AsyncIOMotorClient(MONGO_URI)
db = client["crawler_db"]
results_col = db["crawl_results"]

async def save_result(data: dict):
    await results_col.insert_one(data)
